<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-on的参数类型</title>
</head>
<script src="../js/vue.js"></script>
<body>

<p>v-on如果要传递的参数中有event对象，需要写成$event传递</p>

<div id="app">
    <button @click="putmessage(123,$event)">点击</button>
</div>
</body>

<script>
    const app = new Vue({
        'el': '#app',
        data: {},
        methods: {
            putmessage(param, event) {
                console.log(param);
                console.log(event);
            }
        }
    })
</script>
</html>